
#ifndef __CITYINFO_H
#define __CITYINFO_H

#include "stdtypes.h"
#include "XString.h"
#include "LinkList.h"

struct CITY_ITEM
{
	CXString itemId;
	CXString itemName;
	CXString itemPostal;
};

class CCityInfo
{
public:
	CCityInfo();
	~CCityInfo();
	
	void SetDBName(CXString dbName);
	void GetProvinceList(CXList<CITY_ITEM>* list);
	void GetCityList(CXString itemId,CXList<CITY_ITEM>* list);
	void GetAreaList(CXString itemId,CXList<CITY_ITEM>* list);
private:
	void LoadItemArrayWithSql(CXList<CITY_ITEM>* list,CXString& sqlString);
	CXString m_dbName;
};

#endif 